/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * @author duonghung1369
 */
public class Product implements Serializable {
    private int id;
    private String name;
    private String description;
    private float price;
    private int quantity;
    private Date create_date;
    private Date update_date;
    private boolean is_deleted;
    private boolean is_showed;
    private Category category;
    private List<OrderItem> order_items;
    private List<Image> images;

    public Product() {
    }

    public Product(int id, String name, String description, float price, int quantity, Date create_date, Date update_date, boolean is_deleted, boolean is_showed) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.price = price;
        this.quantity = quantity;
        this.create_date = create_date;
        this.update_date = update_date;
        this.is_deleted = is_deleted;
        this.is_showed = is_showed;
        images = new ArrayList<Image>();
    }



//    public Product(String name, String description, float price, int quantity, Date createDate, Date updateDate, boolean isDeleted, boolean isShowed){
//        this.name = name;
//        this.description = description;
//        this.price = price;
//        this.quantity = quantity;
//        this.create_date = createDate;
//        this.update_date = updateDate;
//        this.is_deleted = isDeleted;
//        this.is_showed = isShowed;
//        images = new ArrayList<Image>();
//    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the price
     */
    public float getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(float price) {
        this.price = price;
    }

    /**
     * @return the quantity
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * @param quantity the quantity to set
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    /**
     * @return the create_date
     */
    public Date getCreate_date() {
        return create_date;
    }

    /**
     * @param create_date the create_date to set
     */
    public void setCreate_date(Date create_date) {
        this.create_date = create_date;
    }

    /**
     * @return the update_date
     */
    public Date getUpdate_date() {
        return update_date;
    }

    /**
     * @param update_date the update_date to set
     */
    public void setUpdate_date(Date update_date) {
        this.update_date = update_date;
    }

    /**
     * @return the is_deleted
     */
    public boolean isIs_deleted() {
        return is_deleted;
    }

    /**
     * @param is_deleted the is_deleted to set
     */
    public void setIs_deleted(boolean is_deleted) {
        this.is_deleted = is_deleted;
    }

    /**
     * @return the category
     */
    public Category getCategory() {
        return category;
    }

    /**
     * @param category the category to set
     */
    public void setCategory(Category category) {
        this.category = category;
    }

    /**
     * @return the order_items
     */
    public List<OrderItem> getOrder_items() {
        return order_items;
    }

    /**
     * @param order_items the order_items to set
     */
    public void setOrder_items(List<OrderItem> order_items) {
        this.setOrder_items(order_items);
    }

    /**
     * @return the is_showed
     */
    public boolean isIs_showed() {
        return is_showed;
    }

    /**
     * @param is_showed the is_showed to set
     */
    public void setIs_showed(boolean is_showed) {
        this.is_showed = is_showed;
    }

    /**
     * @return the images
     */
    public List<Image> getImages() {
        return images;
    }

    /**
     * @param images the images to set
     */
    public void setImages(List<Image> images) {
        this.images = images;
    }

    
}
